
export const login = (data) => uni.$http.get('/mange/account/login',data)

export const getBanner = () => uni.$http.get('/client/carouselImg')
//门店详情
export const getStore = (data) => uni.$http.get('/client/store',data)
//门店列表
export const getStoreList = (data) => uni.$http.get('/client/store/stores',data)
//授权code
export const authApplets = (code) => uni.$http.post(`/client/login/auth/${code}/applets`)
//授权手机号
export const authPhone = (data) => uni.$http.post('/client/login/auth/phone',data)
//用户详情
export const getUserDetail = () => uni.$http.get('/client/user/detail')
//用户订单
export const getUserOrders = (data) => uni.$http.get('/client/userOrder/user-order',data)
//支付
export const wechatPay = (data) => uni.$http.post('/client/userOrder/wechatPay',data)
//支付结果上报
export const payStatus = (data) => uni.$http.post('/client/userOrder/wechat/notify',data)
//团课详情
export const getLeagueDetail = (courseId) => uni.$http.get(`/client/groupClass/${courseId}`)
//私教详情
export const getCoachDetail = (courseId) => uni.$http.get(`/client/coursePaike/${courseId}`)
//取消支付
export const cancelPay = (orderId) => uni.$http.post(`/client/userOrder/cancel/${orderId}`)
//继续支付
export const continuePay = (data) => uni.$http.post(`/client/userOrder/continue/pay`,data)
//充值列表
export const getRechList = (data) => uni.$http.get('/client/preferentialStored',data)
//充值记录
export const payRecord = () => uni.$http.get('/client/preferentialStored/rechargeDetails')
//意向合作
export const cooperation = (data) => uni.$http.post(`/client/cooperation`,data)
//意向合作
export const feedback = (data) => uni.$http.post(`/client/feedback`,data)
//开台
export const openTab = (deviceNo) => uni.$http.get(`/client/storePoolTables/${deviceNo}`)
//实时金钱
export const getRecord = (recordId) => uni.$http.get(`/client/storePoolTables/${recordId}/money`)
//退款
export const refund = (recoredId) => uni.$http.post(`/client/userOrder/refund/${recoredId}`)
//退款
export const delOrder = (orderId) => uni.$http.post(`/client/userOrder/${orderId}`)
//退款
export const getGoods = () => uni.$http.get(`/client/integralMall`)
//开门
export const openDoor = (deviceNo) => uni.$http.get(`/client/store/door/${deviceNo}`)

